<%--
  Created by IntelliJ IDEA.
  User: ghp
  Date: 2022/10/4
  Time: 10:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>c:if</title>
</head>
<body>
<%--定义一个变量visitCount，并进行赋值--%>
<c:set value="1" var="visitCount" property="visitCount"/>
<c:if test="${visitCount == 1}">
  c:if标签中的test属性的逻辑表达式为true
</c:if>
</body>
</html>
